package test;

public class fordemo5 {
	public static void main(String[] args) {

		int[] num = { 1, 2, 3, 4, 5, 6 };

		for (int i = 0; i <6; i++) {
			System.out.println(num[i]);
		}
		System.out.println("=======================================");
		
		
		//num全部直接赋值给了x
		for (int x : num) {
			System.out.println(x);
		}
	}
}
